﻿/*--------------------------------------------------
 Creater：Junxuan.Su
 Time：2013-12-8 17:31:24
 Remark : HtmlResolver
--------------------------------------------------*/

using System;
using System.Xml;

namespace HXDNB.Infrastructure
{
    public class HtmlResolver : XmlUrlResolver
    {
        public override Uri ResolveUri(Uri baseUri, string relativeUri)
        {
            if (relativeUri.Contains("xhtml1-transitional.dtd"))
                relativeUri = Config.Dtd;
            return base.ResolveUri(baseUri, relativeUri);
        }
    }
}
